package com.five.twentyfouth;

import java.util.Scanner;

/*
键盘录入一个月份数字,使用switch输出这个月份对应的季节.
 */
public class Test08 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个月份");
        int week = sc.nextInt();
        switch (week) {
            case 1:
            case 11:
            case 12:
                System.out.println("这个月是冬季");
                break;
            case 2:
            case 3:
            case 4:
                System.out.println("这个月是春季");
                break;
            case 5:
            case 6:
            case 7:
                System.out.println("这个月是夏季");
                break;
            case 8:
            case 9:
            case 10:
                System.out.println("这个月是秋季");
                break;

        }
    }
}
